package com.lg.partition11;

import java.io.*;

/**
 * @author `RKC`
 * @date 2022/4/28 9:13
 */
public class P1095NOIP2007普及组_守望者的逃离 {

    private static int m, s, t;

    private static StreamTokenizer tokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
    private static PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.out));

    public static void main(String[] args) throws IOException {
        m = nextInt(); s = nextInt(); t = nextInt();
        boolean flag = false;
        //分别记录跑的和闪烁的距离
        int s1 = 0, s2 = 0, time = 0;
        for (int i = 1; i <= t; i++) {
            s1 += 17;
            if (m >= 10) {
                m -= 10;
                s2 += 60;
            } else {
                m += 4;
            }
            //如果闪烁的跑的更远，就使用闪烁的
            if (s2 > s1) s1 = s2;
            if (s1 >= s) {
                flag = true;
                time = i;
                break;
            }
        }
        if (flag) writer.format("Yes\n%d", time);
        else writer.format("No\n%d", s1);
        writer.flush();
    }

    private static int nextInt() throws IOException {
        tokenizer.nextToken();
        return (int) tokenizer.nval;
    }
}
